﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WFTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            ofdFileMp4.InitialDirectory = "C:\\Users\\lenovo\\Desktop";
            ofdFileMp4.DefaultExt = ".txt";
            ofdFileMp4.Filter = "(图片)|*.gif|(文本)|*.txt";

            DialogResult result = ofdFileMp4.ShowDialog();
            if (result == DialogResult.OK) {
                this.txtFileName.Text = ofdFileMp4.FileName;
            }
        }
    }
}
